import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('movie_tags')
export class MovieTagsEntity {
  @PrimaryGeneratedColumn({ type: 'int' })
  id: number;
  // tagName是唯一的
  @Column({
    unique: true,
    type: 'varchar',
    length: 20,
    comment: '电影标签名称',
  })
  tagName: string;
}
